# SysCall

## API

### SysCall object

    `class SysCall(exec_: str = None)`.

    `.args(args: list)`: Input arguments command.

    `.exec()`: Executing command `exec_` returned `True` or `False`.

    `.input(data: bytes)`: Input data in `stdin`.

    `.get_output()`: Get `stdout` from executing command `exec_`

    `.get_error()`: Get `stderr` from executing command `exec_`


## import:

```
from syscall import SysCall
```

## Examples:

### 1.

```
call = SysCall("gpg")

call.args(["-c"])

call.input(b"secret message")

call.exec

encrypted_message = call.get_output
```

### 2.

```
call = SysCall("mkdir")

input_path = "foo/bar"

call.args(["-p", input_path])

call.exec
```
